import { http } from '@/utils/http'
import { GoodsResult } from '@/types/goods'

export const getGoodsById = (id: string) =>
  http<GoodsResult>({ url: '/goods', data: { id } })